# !/usr/bin/env python
# -*- coding: utf-8 -*-

a = 10


def init():
    # 函数中赋值全局变量，用global
    global a
    a = 6


if __name__ == '__main__':
    print(a)

    a = 5
    print(a)

    init()
    print(a)
